package gist;

/**
 * describe:字符串截取
 * author:gss
 *
 * @note：
 * @knowledge: create_time:2016/2/5 0005 15:42
 */
public class SubString {

    public static void main(String[] args) {
        String s = "D:/test/2016-02-04/bus_exam_sync_lock_2016-02-04.sql";
        String result = s.substring(s.lastIndexOf("/") + 1, s.lastIndexOf("_"));
        System.out.println(result);
    }
}
